package ModelLayer;



/**
 * The test class DvdTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class DvdTest extends junit.framework.TestCase
{
    /**
     * Default constructor for test class DvdTest
     */
    public DvdTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    protected void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    protected void tearDown()
    {
    }

	public void testDVDTest()
	{
		ModelLayer.Dvd dvd1 = new ModelLayer.Dvd(2500, "Choclate Rain", "MuuYa", "12-02-2010");
		assertEquals("MuuYa", dvd1.getArtist());
		assertEquals("12-02-2010", dvd1.getReleaseDate());
		assertEquals("Choclate Rain", dvd1.getTitle());
		assertEquals(2500, dvd1.getId());
		ModelLayer.DvdCopy dvdCopy1 = new ModelLayer.DvdCopy("151515", "12-05-2010", 159);
		dvd1.addCopy(dvdCopy1);
		assertEquals(ModelLayer.DvdCollection.getInstance(), ModelLayer.DvdCollection.getInstance());
	}
}

